﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Net;
using System.IO;

namespace Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            WebClient webClient = new WebClient();
            byte[] buff = webClient.DownloadData("https://music.163.com/playlist?id=545540351&userid=384598670");
            using(FileStream fs=new FileStream(@"G:\Gitee\FavoriteMusic\1.txt", FileMode.OpenOrCreate, FileAccess.Write))
            {
                fs.Write(buff, 0, buff.Length);
            }

        }
    }
}
